package com.example.mallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.example.mallproduct.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author charlie
 * @email @gmail.com
 * @date 2023-11-26 14:55:58
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据分类查询品牌名
     * @param catId
     * @return
     */
    List<CategoryBrandRelationEntity> brandsRelationList(Long catId);

    /**
     * 保存品牌与分类的关联
     * @param categoryBrandRelation
     */
    void saveDetails(CategoryBrandRelationEntity categoryBrandRelation);
}

